
package com.fx.apartment.modules.activity.mapper;

import com.fx.apartment.modules.activity.entity.ActivityParticipation;
import com.fx.apartment.modules.activity.vo.ActivityParticipationVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import io.lettuce.core.dynamic.annotation.Param;

import java.util.List;

/**
 * 参与活动 Mapper 接口
 *
 * @author QinXueFeng
 * @since 2021-04-19
 */
public interface ActivityParticipationMapper extends BaseMapper<ActivityParticipation> {

	/**
	 * 自定义分页
	 *
	 * @param page
	 * @param activityParticipation
	 * @return
	 */
	List<ActivityParticipationVO> selectActivityParticipationPage(IPage page, ActivityParticipationVO activityParticipation);

    Integer addVotesNum(@Param("id") Long id);
}
